﻿@model Dictionary<String, dynamic>
@{
    Layout = "~/Views/Shared/_Default.cshtml";
    ViewBag.PageTitle = T(Res.Name("Title"));
    var nonEmpty = Model.Where(x => (x.Value.Items as IEnumerable<dynamic>).Any());
}

@if(nonEmpty.Any())
{
    foreach(var i in nonEmpty)
    {
        Html.RenderPartial("_" + i.Key, (object)i.Value);
    }
}
else
{
    <div class="box">
        <section>
            <span class="empty">@T(Res.In("Common").Of("Expr").Name("NoData"))</span>
        </section>
    </div>
}